package com.hyy.blogtest.service;

import com.hyy.blogtest.common.pojo.dadaobject.UserInfo;
import com.hyy.blogtest.common.pojo.request.RegisterRequest;
import com.hyy.blogtest.common.pojo.request.UserLoginRequest;
import com.hyy.blogtest.common.pojo.response.RegisterResponse;
import com.hyy.blogtest.common.pojo.response.UserInfoResponse;
import com.hyy.blogtest.common.pojo.response.UserLoginResponse;
import jakarta.validation.constraints.NotNull;

public interface UserService {
    UserInfoResponse selectById(@NotNull Integer id);

    UserLoginResponse login(UserLoginRequest userLoginRequest);

    UserInfoResponse getAuthorInfo(@NotNull Integer blogId);

    RegisterResponse register(RegisterRequest request);
}
